/*
 *  player.h
 */

#ifndef PLAYER_H
#define PLAYER_H

#include <string>
#include "../../common/src/session.h"
#include "player.h"

class Player {
public:
    Player(int playerID, Session* session, std::string name);
    ~Player();
    int getID();
    int getScore();
    void addScore(int points);
    void resetScore();
    Session* getSession();
    std::string getName();
    int getLives();
    void resetLives();
    void subtractLife();
private:
    static const int INIT_LIVES = 3;    //TODO: move to campaign config
    int playerID;
    Session* session;
    std::string name;
    int lives;
    int score;
};

#endif //PLAYER_H

//{+}

